<!-- =========================
            PRE LOADER       
            ============================== -->
        <div class="preloader">
            <div class="status">&nbsp;</div>
        </div>
        
        <div class="socials">
            <ul>
                <li><a href="<?php echo Yii::app()->params['linkin']?>"><span class="icon icon-uniE605"></span></a></li>
                <li><a href="<?php echo Yii::app()->params['google']?>"><span class="icon icon-googleplus"></span></a></li>
                <li><a href="<?php echo Yii::app()->params['twitter']?>"><span class="icon icon-twitter"></span></a></li>
                <li><a href="<?php echo Yii::app()->params['facebook']?>"><span class="icon icon-facebook"></span></a></li>                
            </ul>
        </div>
        <!-- =========================
            HEADER   
            ============================== -->
        <header class="header" data-stellar-background-ratio="0.5" id="home">
            <!-- STICKY NAVIGATION -->
            <div class="navbar navbar-inverse bs-docs-nav navbar-fixed-top sticky-navigation">
                <div class="container">
                    <div class="navbar-header">
                        <!-- LOGO ON STICKY NAV BAR -->
                        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#otus-navigation"> 
                            <span class="sr-only">Toggle navigation</span> 
                            <span class="icon-bar"></span> 
                            <span class="icon-bar"></span> 
                            <span class="icon-bar"></span> 
                        </button>
                        <a class="navbar-brand" id="logo" href="<?php echo Yii::app()->baseUrl?>/"><img src="<?php echo Yii::app()->theme->baseUrl?>/frontend/images/logo_inn.png" alt=""></a> 
                    </div>
                    <!-- NAVIGATION LINKS -->
                    <div class="navbar-collapse collapse" id="otus-navigation">
                        <ul class="nav navbar-nav navbar-right main-navigation">
                            <li><a href="<?php echo Yii::app()->baseUrl?>/">Home</a></li>
                            <?php
                            if($menu){
                                foreach ($menu as $key => $value) {
                                    $subs = MyFunctionCustom::getSubMenuByParent($value['id']);
                                    if(count($subs)> 0){
                                        echo '<li class="dropdown">';
                                        echo '<a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown">' . $value['name'] . '</a>';    
                                        echo '<ul class="dropdown-menu">';
                                        foreach ($subs as $k => $sub) {
                                            echo '<li><a href="'. Yii::app()->baseUrl.'/'.$sub['parent']['url'] .'/'. $sub['url'].'.html">'.$sub['name'].'</a></li>';
                                        }
                                        echo '</ul>';
                                        echo '</li>';
                                    }else{
                                        if($value['static_page'])
                                            echo '<li><a href="' . Yii::app()->baseUrl.'/'.$value['url'] . '.html">' . $value['name'] . '</a></li>';        
                                        else
                                            echo '<li><a href="#' .$value['url'] . '">' . $value['name'] . '</a></li>';    
                                    }
                                }
                                
                            }
                            ?>
                        </ul>
                    </div>
                </div>
                <!-- /END CONTAINER --> 
            </div>
            <!-- /END STICKY NAVIGATION --> 
            
             <?php if(!isset($_GET['cms_id']) && !isset($_GET['id']) && !isset($_GET['sub_id'])):?>
                <!-- CONTAINER -->
                <div class="container">
                    <!-- ONLY LOGO ON HEADER -->
                    <div class="only-logo">
                        <div class="navbar">
                            <div class="navbar-header"><img src="<?php echo Yii::app()->theme->baseUrl?>/frontend/images/logo.png" alt=""> </div>
                        </div>
                    </div>
                    <!-- /END ONLY LOGO ON HEADER --> 
                </div>
                <!-- /END CONTAINER --> 
            <?php endif;?>            
        </header>
        <!-- /END HEADER --> 